package com.gy.def.repository;

import com.gy.def.dataobject.BookTable;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

public interface BookRepository extends JpaRepository<BookTable, String> {

  BookTable findByBookName(String bookName);

  Page<BookTable> findByIsDelete(int isDelete, Pageable pageable);

  BookTable findByBookId(String bookId);

  Page<BookTable> findByBookUserId(String bookUserId, Pageable pageable);
}
